# !/usr/bin/env python
# -*- coding: UTF-8 -*-
# -------------------------------------------------------------------
from django.conf import settings
from django.views.generic.simple import direct_to_template
from django.conf.urls.defaults import *

# -----------------------------------------------------------------------------
# URL's
# -----------------------------------------------------------------------------
urlpatterns = patterns('',	
	#index
    (r'^$', direct_to_template, {'template': 'index.html'}),
)

# -----------------------------------------------------------------------------
# MEDIA
# -----------------------------------------------------------------------------
if settings.DEBUG:
    urlpatterns += patterns('',
	    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root':'./media/'}),
    )

# -----------------------------------------------------------------------------
# ADMIN
# -----------------------------------------------------------------------------
if settings.USE_ADMIN:
	from django.contrib import admin
	admin.autodiscover()
	urlpatterns += patterns('',
      (r'^admin/', include(admin.site.urls)),
    )
